from django.db import models

# Create your models here.

from dvadmin.utils.models import CoreModel

class CrudDemoModel(CoreModel):
    goods = models.CharField(max_length=255, verbose_name='商品')
    inventory = models.IntegerField(verbose_name='库存量')
    goods_price = models.FloatField(verbose_name='商品定价')
    puuchase_goods_data = models.DateField(verbose_name='进货时间')

    class Meta:
        db_table = 'goods'
        verbose_name = '商品表'
        verbose_name_plural = verbose_name
        ordering = ('-create_datetime', )